#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "qdicethread.h"
#include <QLabel>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QDiceThread aDiceThread;

    void setQLabelPicByPath(QLabel *label, QString path);

private slots:
    void on_pushButton_startThread_clicked();

    void on_pushButton_start_clicked();

    void on_pushButton_stop_clicked();

    void receive_diceThread_value(int seq, int v);

    void diceThread_start();

    void diceThread_stop();

    void on_pushButton_stopThread_clicked();

    void on_pushButton_clearText_clicked();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
